﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="JT_SalerPanel.aspx.cs" Inherits="JTicket.UI.JT_SalerPanel" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">

    $(document).ready(
    function () {
        GetDB();
        setInterval("GetDB();", 30000);
    });
    function GetDB() {
        $("#board").html("数据读取中...");
        $.ajax({
            type: "GET",
            url: "BoardListTop6Handler.axd?Time=" + new Date(),
            success: function (Res) {
                $("#board").html(Res);
            },
            error: function () {
                $("#board").html("数据读取错误...");
            },
            async: false
        });

        $("#stitle").html("数据读取中...");
        $.ajax({
            type: "GET",
            url: "TitleHandler.axd?Time="+new Date(),
            success: function (Result) {
                var str = "";
                str += "<table width=\"100%\" border=\"0\" bordercolordark=\"#3890B5\" bordercolorlight=\"#6591BE\" align=\"center\" cellpadding=\"1\" cellspacing=\"1\">";
                str += "<tr>";
                str += "<td height=\"25\" align=\"center\" bgcolor=\"#3890B5\" style=\"width: 174px\">";
                str += "<span class=\"B S\">编号</span>";
                str += "</td>";
                str += "<td align=\"center\" bgcolor=\"#3890B5\" style=\"width: 244px\">";
                str += "<span class=\"B S\">演出名称</span>";
                str += "</td>";
                str += "<td align=\"center\" bgcolor=\"#3890b5\">";
                str += "<span class=\"B S\">演出开始时间</span>";
                str += "</td>";
                str += "<td align=\"center\" bgcolor=\"#3890b5\">";
                str += "<span class=\"B S\">演出结束时间</span>";
                str += "</td>";
                str += "<td align=\"center\" bgcolor=\"#3890B5\" style=\"width: 200px\">";
                str += "<span class=\"B S\">场馆</span>";
                str += "</td>";
                str += " <td align=\"center\" bgcolor=\"#3890B5\" style=\"width: 100px\">";
                str += "<span class=\"B S\">演出类别</span>";
                str += "</td>";
                str += "</tr>";
                var arr = new Array();
                arr = eval(Result);
                $.each(arr, function (i) {
                    str += "<tr>";
                    str += "<td align=\"center\" bgcolor=\"#F6F6F6\">";
                    str += arr[i].StitleCode;
                    str += "</td>";
                    str += "<td bgcolor=\"#F6F6F6\" height=\"25\" style=\"width: 444px\" align=\"center\">";
                    str += "<a  href=\"#\"  onclick=\"window.showModalDialog('JT_Area.aspx?TitleCode=" + arr[i].StitleCode + "&ThCode=" + arr[i].ThCode + "','','location:No;status:No;help:No;dialogWidth:900px;dialogHeight:500px;scroll:yes');\">";
                    str += arr[i].Stitlename;
                    str += "</a>";
                    str += "</td>";
                    str += "<td align=\"center\" bgcolor=\"#f6f6f6\" height=\"25\" style=\"width: 300px\">";
                    str += ChangeDateFormat(arr[i].Begindate);
                    str += "</td>";
                    str += "<td align=\"center\" bgcolor=\"#f6f6f6\" height=\"25\" style=\"width: 300px\">";
                    str += ChangeDateFormat(arr[i].EndDate);
                    str += "</td>";
                    str += "<td align=\"center\" bgcolor=\"#F6F6F6\">";
                    str += arr[i].Stheater;
                    str += "</td>";
                    str += "<td align=\"center\" bgcolor=\"#F6F6F6\">";
                    str += arr[i].Stitlesort;
                    str += "</td>";
                    str += "</tr>";
                });
                str += "</table>";
                $("#stitle").html(str);
            },
            error: function () {
                $("#stitle").html("数据读取错误...");
            },
            async: false
        });
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="sm" runat="server">
        <Services>
            <asp:ServiceReference InlineScript="true" Path="~/Service/JT_TitleSvc.asmx" />
        </Services>
    </asp:ScriptManager>
    <table align="center" cellpadding="4" cellspacing="1" border="1" width="100%" class="toptable grid fixed">
        <tr>
            <td height="25" class="category t2" style="width: 716px">
                最新公告
            </td>
            <td height="25" class="category">
                <a href="S_BoardList.aspx">更多公告</a>
            </td>
        </tr>
    </table>
    <div id="board">
    </div>
    <div id="stitle">
    </div>
</asp:Content>
